package com.danny;

import com.danny.service.IUserService;
import com.danny.service.UserService;
import com.spring.DyApplicationContext;

public class Test {

    public static void main(String[] args) throws Exception {
        DyApplicationContext context = new DyApplicationContext(AppConfig.class);

        IUserService userService = (IUserService) context.getBean("userService");
        userService.test();
    }
}
